package be.gwi.alfresco.run.facade.impl;

import org.alfresco.service.cmr.repository.NodeService;
import org.springframework.util.Assert;

public class AbstractFacadeImpl {

    protected NodeService nodeService;

    public AbstractFacadeImpl() {
        super();
    }

    /**
     * Initializes the facade.
     * 
     * Verifies that all the attributes have been set.
     * 
     * @throws IllegalArgumentException
     *             if not all attributes have been set.
     */
    public void init() {
        Assert.notNull(this.nodeService, "The node service must have been set");
    }

    /**
     * @param nodeService
     *            the nodeService to set
     */
    public void setNodeService(NodeService nodeService) {
        this.nodeService = nodeService;
    }

}